sfc: provide dummy definitions of vswitch functions
authorBert Kenward <bkenward@solarflare.com>
Fri, 16 Jun 2017 08:45:08 +0000 (09:45 +0100)
committerRaspbian kernel package updater <root@raspbian.org>
Sun, 23 Jul 2017 03:03:45 +0000 (03:03 +0000)
commit3474a1c95daacc39dd8e74fa2e97bfa783099d41
tree4c5a0a58bc81d281b2d4859c622f8c17206a639a
parent5fd437d1a0841e1682bd5d923a5f0b7ee2c281a6
sfc: provide dummy definitions of vswitch functions

efx_probe_all() calls efx->type->vswitching_probe during probe. For
SFC4000 (Falcon) NICs this function is not defined, leading to a BUG
with the top of the call stack similar to:
  ? efx_pci_probe_main+0x29a/0x830
  efx_pci_probe+0x7d3/0xe70

vswitching_restore and vswitching_remove also need to be defined.

Fixed in mainline by:
commit 5a6681e22c14 ("sfc: separate out SFC4000 ("Falcon") support into new sfc-falcon driver")

Fixes: 6d8aaaf6f798 ("sfc: create VEB vswitch and vport above default firmware setup")
Signed-off-by: Bert Kenward <bkenward@solarflare.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/sfc/falcon.c